package com.itheima.test1;

import java.math.BigDecimal;

public class Test1BigDecimal {
    public static void main(String[] args) {
        BigDecimal decimal1 = new BigDecimal(10.5);
        BigDecimal decimal2 = new BigDecimal("20.5");
        System.out.println(decimal1);    //10.5
        System.out.println(decimal2);    //20.5
    }
}
